package com.streambolics.worseminton.servlet;

import javax.servlet.http.HttpServletRequest;

import com.streambolics.worseminton.data.Event;

public class EventCreateHandler extends EventHandler
{
    private static final long serialVersionUID = 1L;

    @Override
    protected Event generateResponseObject (HttpServletRequest aRequest) throws Exception
    {
        Event e = accessEvent ();
        updateEvent (e);
        updateGuests (e);
        e.sendEmails ();
        return e;
    }

    @Override
    protected String getRedirect (Event aResponseObject)
    {
        return aResponseObject.getIdUrl ("/go/Event");
    }

}
